﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CNRegex.Entity;

namespace CNRegex.Web.Base
{
	public class FrontContext
	{
		private const string USER_SESSION_KEY = "USER_SESSION_KEY";
		public static RegexUser CurrentRegexUser
		{
			get
			{
				return HttpContext.Current.Session[USER_SESSION_KEY] as RegexUser;
			}
			set
			{
				HttpContext.Current.Session[USER_SESSION_KEY] = value;
			}
		}

	}
}